Optimal. Leaf size=130 \[ -\frac {\sqrt {1-d^2 x^2} \left (2 \left (3 d^2 f (A f+B e)-C \left (d^2 e^2-2 f^2\right )\right )-d^2 f x (C e-3 B f)\right )}{6 d^4 f}+\frac {\sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )}{2 d^3}-\frac {C \sqrt {1-d^2 x^2} (e+f x)^2}{3 d^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.23, antiderivative size = 133, normalized size of antiderivative = 1.02, number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {1609, 1654, 780, 216} \[ -\frac {\sqrt {1-d^2 x^2} \left (2 \left (3 d^2 f (A f+B e)-\frac {1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f x (C e-3 B f)\right )}{6 d^4 f}+\frac {\sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )}{2 d^3}-\frac {C \sqrt {1-d^2 x^2} (e+f x)^2}{3 d^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 780
Rule 1609
Rule 1654
Rubi steps
\begin {align*} \int \frac {(e+f x) \left (A+B x+C x^2\right )}{\sqrt {1-d x} \sqrt {1+d x}} \, dx &=\int \frac {(e+f x) \left (A+B x+C x^2\right )}{\sqrt {1-d^2 x^2}} \, dx\\ &=-\frac {C (e+f x)^2 \sqrt {1-d^2 x^2}}{3 d^2 f}-\frac {\int \frac {(e+f x) \left (-\left (2 C+3 A d^2\right ) f^2+d^2 f (C e-3 B f) x\right )}{\sqrt {1-d^2 x^2}} \, dx}{3 d^2 f^2}\\ &=-\frac {C (e+f x)^2 \sqrt {1-d^2 x^2}}{3 d^2 f}-\frac {\left (2 \left (3 d^2 f (B e+A f)-\frac {1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f (C e-3 B f) x\right ) \sqrt {1-d^2 x^2}}{6 d^4 f}+\frac {\left (C e+2 A d^2 e+B f\right ) \int \frac {1}{\sqrt {1-d^2 x^2}} \, dx}{2 d^2}\\ &=-\frac {C (e+f x)^2 \sqrt {1-d^2 x^2}}{3 d^2 f}-\frac {\left (2 \left (3 d^2 f (B e+A f)-\frac {1}{2} C \left (2 d^2 e^2-4 f^2\right )\right )-d^2 f (C e-3 B f) x\right ) \sqrt {1-d^2 x^2}}{6 d^4 f}+\frac {\left (C e+2 A d^2 e+B f\right ) \sin ^{-1}(d x)}{2 d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 88, normalized size = 0.68 \[ \frac {3 d \sin ^{-1}(d x) \left (2 A d^2 e+B f+C e\right )-\sqrt {1-d^2 x^2} \left (6 A d^2 f+3 B d^2 (2 e+f x)+C \left (3 d^2 e x+2 d^2 f x^2+4 f\right )\right )}{6 d^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.64, size = 114, normalized size = 0.88 \[ -\frac {{\left (2 \, C d^{2} f x^{2} + 6 \, B d^{2} e + 2 \, {\left (3 \, A d^{2} + 2 \, C\right )} f + 3 \, {\left (C d^{2} e + B d^{2} f\right )} x\right )} \sqrt {d x + 1} \sqrt {-d x + 1} + 6 \, {\left (B d f + {\left (2 \, A d^{3} + C d\right )} e\right )} \arctan \left (\frac {\sqrt {d x + 1} \sqrt {-d x + 1} - 1}{d x}\right )}{6 \, d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.31, size = 146, normalized size = 1.12 \[ -\frac {\sqrt {d x + 1} \sqrt {-d x + 1} {\left ({\left (d x + 1\right )} {\left (\frac {2 \, {\left (d x + 1\right )} C f}{d^{3}} + \frac {3 \, B d^{10} f + 3 \, C d^{10} e - 4 \, C d^{9} f}{d^{12}}\right )} + \frac {3 \, {\left (2 \, A d^{11} f + 2 \, B d^{11} e - B d^{10} f - C d^{10} e + 2 \, C d^{9} f\right )}}{d^{12}}\right )} - \frac {6 \, {\left (2 \, A d^{2} e + B f + C e\right )} \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {d x + 1}\right )}{d^{2}}}{6 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.02, size = 235, normalized size = 1.81 \[ -\frac {\sqrt {-d x +1}\, \sqrt {d x +1}\, \left (2 \sqrt {-d^{2} x^{2}+1}\, C \,d^{2} f \,x^{2} \mathrm {csgn}\relax (d )-6 A \,d^{3} e \arctan \left (\frac {d x \,\mathrm {csgn}\relax (d )}{\sqrt {-d^{2} x^{2}+1}}\right )+3 \sqrt {-d^{2} x^{2}+1}\, B \,d^{2} f x \,\mathrm {csgn}\relax (d )+3 \sqrt {-d^{2} x^{2}+1}\, C \,d^{2} e x \,\mathrm {csgn}\relax (d )+6 \sqrt {-d^{2} x^{2}+1}\, A \,d^{2} f \,\mathrm {csgn}\relax (d )+6 \sqrt {-d^{2} x^{2}+1}\, B \,d^{2} e \,\mathrm {csgn}\relax (d )-3 B d f \arctan \left (\frac {d x \,\mathrm {csgn}\relax (d )}{\sqrt {-d^{2} x^{2}+1}}\right )-3 C d e \arctan \left (\frac {d x \,\mathrm {csgn}\relax (d )}{\sqrt {-d^{2} x^{2}+1}}\right )+4 \sqrt {-d^{2} x^{2}+1}\, C f \,\mathrm {csgn}\relax (d )\right ) \mathrm {csgn}\relax (d )}{6 \sqrt {-d^{2} x^{2}+1}\, d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.31, size = 131, normalized size = 1.01 \[ -\frac {\sqrt {-d^{2} x^{2} + 1} C f x^{2}}{3 \, d^{2}} + \frac {A e \arcsin \left (d x\right )}{d} - \frac {\sqrt {-d^{2} x^{2} + 1} B e}{d^{2}} - \frac {\sqrt {-d^{2} x^{2} + 1} A f}{d^{2}} - \frac {\sqrt {-d^{2} x^{2} + 1} {\left (C e + B f\right )} x}{2 \, d^{2}} + \frac {{\left (C e + B f\right )} \arcsin \left (d x\right )}{2 \, d^{3}} - \frac {2 \, \sqrt {-d^{2} x^{2} + 1} C f}{3 \, d^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 12.86, size = 492, normalized size = 3.78 \[ \frac {\frac {2\,B\,f\,\left (\sqrt {1-d\,x}-1\right )}{\sqrt {d\,x+1}-1}-\frac {14\,B\,f\,{\left (\sqrt {1-d\,x}-1\right )}^3}{{\left (\sqrt {d\,x+1}-1\right )}^3}+\frac {14\,B\,f\,{\left (\sqrt {1-d\,x}-1\right )}^5}{{\left (\sqrt {d\,x+1}-1\right )}^5}-\frac {2\,B\,f\,{\left (\sqrt {1-d\,x}-1\right )}^7}{{\left (\sqrt {d\,x+1}-1\right )}^7}}{d^3\,{\left (\frac {{\left (\sqrt {1-d\,x}-1\right )}^2}{{\left (\sqrt {d\,x+1}-1\right )}^2}+1\right )}^4}-\frac {\sqrt {1-d\,x}\,\left (\frac {2\,C\,f}{3\,d^4}+\frac {2\,C\,f\,x}{3\,d^3}+\frac {C\,f\,x^3}{3\,d}+\frac {C\,f\,x^2}{3\,d^2}\right )}{\sqrt {d\,x+1}}+\frac {\frac {2\,C\,e\,\left (\sqrt {1-d\,x}-1\right )}{\sqrt {d\,x+1}-1}-\frac {14\,C\,e\,{\left (\sqrt {1-d\,x}-1\right )}^3}{{\left (\sqrt {d\,x+1}-1\right )}^3}+\frac {14\,C\,e\,{\left (\sqrt {1-d\,x}-1\right )}^5}{{\left (\sqrt {d\,x+1}-1\right )}^5}-\frac {2\,C\,e\,{\left (\sqrt {1-d\,x}-1\right )}^7}{{\left (\sqrt {d\,x+1}-1\right )}^7}}{d^3\,{\left (\frac {{\left (\sqrt {1-d\,x}-1\right )}^2}{{\left (\sqrt {d\,x+1}-1\right )}^2}+1\right )}^4}-\frac {\left (\frac {A\,f}{d^2}+\frac {A\,f\,x}{d}\right )\,\sqrt {1-d\,x}}{\sqrt {d\,x+1}}-\frac {\left (\frac {B\,e}{d^2}+\frac {B\,e\,x}{d}\right )\,\sqrt {1-d\,x}}{\sqrt {d\,x+1}}-\frac {4\,A\,e\,\mathrm {atan}\left (\frac {d\,\left (\sqrt {1-d\,x}-1\right )}{\left (\sqrt {d\,x+1}-1\right )\,\sqrt {d^2}}\right )}{\sqrt {d^2}}-\frac {2\,B\,f\,\mathrm {atan}\left (\frac {\sqrt {1-d\,x}-1}{\sqrt {d\,x+1}-1}\right )}{d^3}-\frac {2\,C\,e\,\mathrm {atan}\left (\frac {\sqrt {1-d\,x}-1}{\sqrt {d\,x+1}-1}\right )}{d^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [C] time = 158.08, size = 617, normalized size = 4.75 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________